module _EMPTYMODULE_ {
import {Female} from "human/Female";
import {Human} from "human/Human";
import {Male} from "human/Male";
    export class Main {
        private mike: Male;
        private lily: Female;
        // Vector类型翻译
        private people: Array<Human> = new Array<Human>();
        public constructor() {
            // as2ts-smart将智能添加this指针
            mike = new Male();
            lily = new Female();
            people.push(mike, lily);
            doSomething();
            mike.passToDo(function(lily: Male):void {
                // 此处的lily是匿名函数的参数，不会添加this指针
                lily.howOldAreYou();
            })
        }
        private doSomething(): void {
            // for each语句翻译
            for (let hm of people) {
                hm.hello();
            }
        }
    }
}